package com.zbl.zblproject.core.entity;

import com.zbl.zblproject.erp.entity.ErpTempOrderItem;

import java.util.List;
import java.util.Objects;

/**
 * @author youlanqiang
 * @version 1.0
 * @date 2018/11/15
 */
public class SnFactoryItem implements FactoryItem{



    /**
     * 门店名称
     */
    private String name;

    private List<ErpTempOrderItem> items;

    private String orderSn;

    private String context;

    private int isConfirm;

    private int financeLog;

    public SnFactoryItem(){
        super();
    }

    public SnFactoryItem(String orderSn){
        this.orderSn = orderSn;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<ErpTempOrderItem> getItems() {
        return items;
    }

    public void setItems(List<ErpTempOrderItem> items) {
        this.items = items;
    }


    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }


    public int getIsConfirm() {
        return isConfirm;
    }

    public void setIsConfirm(int isConfirm) {
        this.isConfirm = isConfirm;
    }

    public int getFinanceLog() {
        return financeLog;
    }

    public void setFinanceLog(int financeLog) {
        this.financeLog = financeLog;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FactoryItem that = (FactoryItem) o;
        return Objects.equals(orderSn, that.getOrderSn());
    }

    @Override
    public int hashCode() {
        return Objects.hash(name);
    }

    @Override
    public String toString() {
        return "FactoryItem{" +
                "name='" + name + '\'' +
                ", items=" + items +
                '}';
    }


}
